<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Banner;
class Banneritem extends Model
{
    public function getIsshowAttribute($value)
    {
        return $value?"显示":"隐藏";
    }
    public function banners(){
        return $this->belongsTo('App\Banner', 'banner_id');
    }
}
